// api.js
import {
	request
} from '@/utils/request.js'; // 引入封装好的request.js
//登录--获取验证码
export const getCodeLogin = (data) => {
	return request({
		url: '/login/verification_code_login',
		method: 'POST',
		data: data,
	});
};
//登录--验证码
export const codeLogin = (data) => {
	return request({
		url: '/login/captcha_verification',
		method: 'POST',
		data: data,
	});
};
//忘记密码--获取验证码
export const getCodeEditPassword = (data) => {
	return request({
		url: '/login/forget_the_password',
		method: 'POST',
		data: data,
	});
};
//忘记密码--修改密码
export const EditPassword= (data) => {
	return request({
		url: '/login/forget_the_password_captcha',
		method: 'POST',
		data: data,
	});
};
//注册
export const Register = (data) => {
	return request({
		url: '/login/verification_register',
		method: 'POST',
		data: data,
	});
};
//注册--获取验证码
export const getCodeRegister = (data) => {
	return request({
		url: '/login/register_send_code',
		method: 'POST',
		data: data,
	});
};
//账号密码登录
export const Login = (data) => {
	return request({
		url: '/login/account_login',
		method: 'POST',
		data: data,
	});
};
//获取oss
export const getOssSecretKey = () => {
	return request({
		url: '/aliyun/get_oss_secret_key',
		method: 'GET',
	});
};
